﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Cinema.GUI
{
    public partial class SaloonAdministration : Form
    {
        public SaloonAdministration()
        {
            InitializeComponent();
        }

        private void tableLayoutPanel1_Paint(object sender, PaintEventArgs e)
        {

        }

        private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {

        }

        private void saloonBindingNavigatorSaveItem_Click(object sender, EventArgs e)
        {
            this.Validate();
            this.saloonBindingSource.EndEdit();
            this.tableAdapterManager.UpdateAll(this.c_dbDataSet);

        }

        private void CinemaAdministration_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'c_dbDataSet.Saloon' table. You can move, or remove it, as needed.
            this.saloonTableAdapter.Fill(this.c_dbDataSet.Saloon);

        }

        private void bindingNavigatorDeleteItem_Click(object sender, EventArgs e)
        {
            Console.WriteLine("Delete event");
        }
    }
}
